import request from '@/utils/request'

/**
* 打包任务分页查询
* @param {查询条件} data
*/
export function listCksPackagingTask(query) {
  return request({
    url: 'business/CksPackagingTask/list',
    method: 'get',
    params: query,
  })
}

/**
* 新增打包任务
* @param data
*/
export function addCksPackagingTask(data) {
  return request({
    url: 'business/CksPackagingTask',
    method: 'post',
    data: data,
  })
}
/**
* 修改打包任务
* @param data
*/
export function updateCksPackagingTask(data) {
  return request({
    url: 'business/CksPackagingTask',
    method: 'PUT',
    data: data,
  })
}
/**
* 获取打包任务详情
* @param {Id}
*/
export function getCksPackagingTask(id) {
  return request({
    url: 'business/CksPackagingTask/' + id,
    method: 'get'
  })
}

/**
* 删除打包任务
* @param {主键} pid
*/
export function delCksPackagingTask(pid) {
  return request({
    url: 'business/CksPackagingTask/delete/' + pid,
    method: 'delete'
  })
}
